HAL ICACHE Types

Enumerations

group ICACHE_Exported_Types_Group1

Enums

enum hal_icache_t

HAL ICACHE instance definitions.

Values:

enumerator HAL_ICACHE

Instance ICACHE

enum hal_icache_associativity_t

HAL ICACHE associativity definitions.

Values:

enumerator HAL_ICACHE_ASSOCIATIVITY_1WAY

1-way cache (direct mapped cache) 1-way

enumerator HAL_ICACHE_ASSOCIATIVITY_2WAYS

0x00000004 cache associativity mode selection 2-ways set associative cache (default) 2-ways

enum hal_icache_master_port_t

HAL ICACHE master port definitions.

Values:

enumerator HAL_ICACHE_MASTER1_PORT

Master1 port Master1 port

enum hal_icache_region_burst_t

HAL ICACHE output burst definitions.

Values:

enumerator HAL_ICACHE_BURST_WRAP

WRAP Output WRAP

enumerator HAL_ICACHE_BURST_INCR

0x80000000 output burst type for region x INCR Output INCR

enum hal_icache_region_t

HAL ICACHE remap region definitions.

Values:

enumerator HAL_ICACHE_REGION_0

Region 0 Region number 0

enumerator HAL_ICACHE_REGION_1

Region 1 Region number 1

enumerator HAL_ICACHE_REGION_2

Region 2 Region number 2

enumerator HAL_ICACHE_REGION_3

Region 3 Region number 3

enum hal_icache_region_size_t

HAL ICACHE remap region size definitions.

Values:

enumerator HAL_ICACHE_REGION_SIZE_2MBYTES

Region size 2MB Region size 2MB

enumerator HAL_ICACHE_REGION_SIZE_4MBYTES

Region size 4MB Region size 4MB

enumerator HAL_ICACHE_REGION_SIZE_8MBYTES

Region size 8MB Region size 8MB

enumerator HAL_ICACHE_REGION_SIZE_16MBYTES

Region size 16MB Region size 16MB

enumerator HAL_ICACHE_REGION_SIZE_32MBYTES

Region size 32MB Region size 32MB

enumerator HAL_ICACHE_REGION_SIZE_64MBYTES

Region size 64MB Region size 64MB

enumerator HAL_ICACHE_REGION_SIZE_128MBYTES

Region size 128MB Region size 128MB

enum hal_icache_remap_region_status_t

HAL ICACHE remap region status definitions.

Values:

enumerator HAL_ICACHE_REMAP_REGION_DISABLED

Corresponding remap region is disabled

enumerator HAL_ICACHE_REMAP_REGION_ENABLED

Corresponding remap region is enabled

enum hal_icache_state_t

HAL ICACHE state definitions.

Values:

enumerator HAL_ICACHE_STATE_RESET

ICACHE driver not initialized and not started

enumerator HAL_ICACHE_STATE_IDLE

ICACHE driver initialized and not started

enumerator HAL_ICACHE_STATE_ACTIVE

ICACHE driver initialized and started

enumerator HAL_ICACHE_STATE_MAINTENANCE

ICACHE driver initialized, started and a maintenance operation is ongoing

Configuration Structure

group ICACHE_Exported_Types_Group2
struct hal_icache_region_config_t
#include <stm32c5xx_hal_icache.h>

HAL ICACHE region configuration structure definition.

Public Members

uint32_t base_address

Configures the base address of the region to be remapped.

uint32_t remap_address

Configures the remap address of the region to be remapped.

hal_icache_region_size_t size

Configures the region size.

hal_icache_master_port_t master_port

Selects the master port.

hal_icache_region_burst_t output_burst

Selects the output burst type.

Handle Structure

group ICACHE_Exported_Types_Group3

Typedefs

typedef struct hal_icache_handle_s hal_icache_handle_t

ICACHE handle type definition

typedef void ( * hal_icache_cb_t ) ( hal_icache_handle_t * hicache )

Pointer to an ICACHE callback function

struct hal_icache_handle_s
#include <stm32c5xx_hal_icache.h>

HAL ICACHE handle structure definition.

Public Members

hal_icache_t instance

Peripheral instance

volatile hal_icache_state_t global_state

ICACHE global state

volatile uint32_t last_error_codes

Variable storing the last errors

hal_icache_cb_t p_error_cb

Error Callback pointer

hal_icache_cb_t p_invalidate_cplt_cb

Invalidate complete Callback pointer

const void * p_user_data

ICACHE user data